<extend name="layout/application"/>
<block name="content">
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">课程分类列表</strong> /
                <small>CoursesCategory List</small>
            </div>
        </div>
        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-12">
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <a type="button" class="am-btn am-btn-default" href="/admin/coursescate/create">
                            <span class="am-icon-plus"></span> 新增
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div class="am-g">
            <div class="am-u-sm-12">
                <form class="am-form">
                    <table class="am-table  am-table-hover table-main">
                        <thead>
                        <tr>

                            <th class="table-id">编号</th>
                            <th class="table-name">标题</th>
                            <th class="table-is-show am-hide-sm-only">slug</th>
                            <th class="table-sort-order am-hide-sm-only" style="width:10%">排序</th>
                            <th class="table-set">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach $cates as $cate>
                            <tr data-id="{{$cate.id}}" class="xParent">
                                <td>{{$cate.id}}</td>
                                <td><span class="am-badge am-badge-secondary am-radius am-text-lg">{{$cate.name}}</span>
                                </td>
                                <td>{{$cate.slug}}</td>
                                <td class="am-hide-sm-only">{{$cate.sort}}</td>
                                <td>
                                    <div class="am-btn-toolbar">
                                        <div class="am-btn-group am-btn-group-xs">
                                            <a class="am-btn am-btn-default am-btn-xs am-text-secondary"
                                               href="{{:Url('Coursescate/edit',['id'=>$cate.id])}}">
                                                <span class="am-icon-pencil-square-o"></span> 编辑
                                            </a>

                                            <a class="am-btn am-btn-default am-btn-xs delete_category am-text-danger am-hide-sm-only"
                                               href="{{:Url('Coursescate/delete',['id'=>$cate.id])}}">
                                                <span class="am-icon-trash-o"></span> 删除
                                            </a>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                </form>
                <!--<div class="am-cf">-->
                <!--共 23条记录-->
                <!--<div class="am-fr">-->
                <!--<ul class="am-pagination">-->
                <!--<li>1</li>-->
                <!--<li>2</li>-->
                <!--</ul>-->
                <!--</div>-->
                <!--</div>-->
            </div>
        </div>
    </div>

</block>
